XMPP client development (1), xmpp client development
Smack can be used for XMPP client development. After downloading Smack and importing relevant jar files, you can start XMPP
Then the previous article continued to study and summarize.XMPP ClientOne design standard for XMPP systems is the need to support simple clients. In fact, the XMPP system architecture has only a few limitations on clients. The features that an XMPP client must support are:
Communicates with the
Recently looked at the framework for XMPP, as an example of text chat, the message that needs to be sent is:Kizhong from is the message from which user, to is sent to who, the user of XMPP is in the form of a mailbox. Body is the text of the message we send.Well, in this case, we will develop an XMPP-based iOS chat client
I recently read about the XMPP framework. Taking text chat as an example, the message to be sent is:
[HTML] View
Plaincopy
Message Type = "Chat" From = Kang@server.com" To = Test@server.com" >
Body > Helloword Body >
Message>
In the base, from is the message sent from the user, to is the message sent to the user, XMPP users are in the form of mailbox. Body is
XMPP Client library smack version 4.0.6 developmentCHSZS, reprint need to indicate. Blog home: Http://blog.csdn.net/chszsThe characteristics of Smack library1. Extremely easy to use, powerful APISending a text message to a user requires only a few lines of code:Abstractxmppconnection connection = new Xmpptcpconnection ("Mtucker", "Password", "jabber.org"); Connection.connect (); Connection.login (); Chat ch
1. Basic steps: First import the XMPP framework, configure the environment-"Since we are using OC's XMPP framework, we need to bridge the development of Swift." The specific method is to create a C-based. h header file, and then add the header file of the language that we need to compile OC to contain this. h file;-"Then import the following library files, in the
[IPhone advanced] XMPP-based IOS chat client (IOS client 1), iPhone exmpp
After introducing the server, we will focus on writing our own IOS client program.
Let's take a look at what we have done
First download the xmppframework framework.
Click ZIP to download
Next, use Xcode to create a project
Drag the followin
1. Build server-Installation sequence-(Mysql->openfire->spark)Database: MySQLServer Management tools: OpenFireTest tool: SparkMySQL installation http://www.cnblogs.com/xiaodao/archive/2013/04/04/2999426.htmlNote: At the end of the terminal to execute the MySQL command, the last to be sealed number (;)OpenFire installation http://www.cnblogs.com/xiaodao/archive/2013/04/05/3000554.htmlBackground Management interface: http://localhost:9090/index.jspLogin name and password default is Admin adminServ
After introducing the server, we will focus on writing our own IOS client program.
Let's take a look at what we have done
First download the xmppframework framework.
Click zip to download
Next, use xcode to create a project
Drag the following files into the new project
Add framework
And set
Now we have all set up. Run it and see if there is any error.
If there is no error, our xmppframework will be successfully added.
We set our page as follow
I. Overview of the SMACK LibrarySmack is an open-source, easy-to-use Xmpp/jabber client library that is developed in the Java language and developed by Jive Software.The advantage of smack is that programming is simple.Smack's disadvantage is that its API is not designed for a large number of concurrent users, each customer needs 1 threads, occupy a relatively high resource, so when using smack for simulati
communicate with most other servers or clients. (insert: Google apps talk based on the XMPP platform, if you do not set the domain name SRV record, only enough gtalk login (unable to use other XMPP client), and can only communicate with gmail.com or other Google Apps domain name account)_xmpp-client._tcp.sagan.me. 864
about XMPP The first-openfire of the building after writing, has been in this article to introduce the Asmack+openfire based on the Android client, a lot of energy, because there are many students in the anxiously waiting for (narcissism of hehe), so tight to slow rush, Now to make a relatively basic version, a lot of features are not perfect, but first put out, for everyone to reference research, ask quest
XMPP (II)-introduction and personal experience of the android client (like QQ) based on asmack + openfire, xmppasmack
The first article on XMPP-after the openfire was built, I have been catching up with this android client based on asmack + openfire which I want to introduce in this article, which has paid a lot of eff
Development of XMPP client library Smack 4.0.6
Development of XMPP client library Smack 4.0.6
Author: chszs, reprinted with note. Blog homepage: http://blog.csdn.net/chszs
Iii. Features of the Smack Library1. extremely easy to use and powerful API functionsOnly a few lines of code are required to send a text message to
Smack can be used for XMPP client development. After downloading smack and importing relevant jar files, you can start XMPP client development.
The following code connects the client to the tigase server and logs on to the server based on the user name and password.
Package
XMPP Client library Smack development of 4.0.6 Version IIIChszs, reprint need to indicate. Blog home:Http://blog.csdn.net/chszsVi. examples of establishing connectionsThe Xmppconnection class is used to create a connection to the XMPP server, with the following code examples:Create a connection to the jabber.org server abstractxmppconnection conn1 = new Xmpptcpco
XMPP Client library Smack Development of 4.0.6 Edition VIChszs, reprint need to indicate. Blog home:Http://blog.csdn.net/chszsV. List roster and online status presenceLists allow you to track whether other users are online, and lists allow you to organize users into groups, such as friends or working groups. Other instant Messaging IM systems treat list roster as friends list, contact list, and so on.1. Lis
Recently, when I saw a penguin fight, I suddenly remembered a previous idea: developing an im similar to email,
At that time, the idea was that penguin was so powerful that a single person or company could not beat it if I started IM from the beginning. because Penguin's servers are very large, it is difficult for small companies to reach that scale in a short time. but what if there is a group of companies?
As with the current email, many companies can do it and have their own customer re
Converse.js is a free and open source chat client that runs in the browser. It can be integrated into any Web page. Similar to Facebook chats, it also supports multi-user chat rooms. The converse.js can be connected to any accessible Xmpp/jabber server.Online Demo plugin DownloadRelated articles that may be of interest to you
The JQuery effect "attached source" is very useful in website development
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.